//
//  LoginAreaCodeCell.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/3/6.
//  Copyright © 2025 考拉🐨. All rights reserved.
//

import UIKit
import Reusable
import Localize_Swift

extension LoginAreaCodeCell: NibReusable {}

class LoginAreaCodeCell: BaseTableViewCell {

    @IBOutlet weak var iconImageView: UIImageView!
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var codeLabel: UILabel!
    
    var model: AreaCodeModel? {
        didSet {
            guard let model = model else { return }
            
            iconImageView.image = model.image.toImage
            nameLabel.text = model.name.localized()
            codeLabel.text = "+" + model.code
            
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    
}
